From 998b63a35256ac985a5a2714dd1ca451af4dfd8a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 9 Oct 2024 00:41:20 -0700 Subject: chore(prettier): use spaces instead of tabs --- src/routes/user/[user]/+page.svelte | 1076 +++++++++++++++++------------------ 1 file changed, 538 insertions(+), 538 deletions(-) (limited to 'src/routes/user/[user]/+page.svelte') diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte index 84f121ea..d60ea8e5 100644 --- a/src/routes/user/[user]/+page.svelte +++ b/src/routes/user/[user]/+page.svelte @@ -1,550 +1,550 @@ {#if error} - - @{data.username}'s - profile could not be loaded. - + + @{data.username}'s + profile could not be loaded. + {:else} - {#if userData === null} - -

- Could not load user profile for @{data.username}. -

-
- {:else if userData === undefined} - - - - {:else} -
-
- {#if userData} - - {/if} - -
-
- - - - - -
- -
-

- - @{userData.name} - - {#if userData && authorisedUsers.includes(userData.id)} - ‌ - - {/if} - - Badge Wall -

- - {#if preferences && preferences.biography && preferences.biography.length > 0} - - {/if} - - {$locale({ - values: { - username: userData.name, - anime: (userData.statistics.anime.minutesWatched / 60 / 24).toFixed(1), - manga: estimatedDayReading(userData.statistics.manga.chaptersRead).toFixed(1) - } - }).user.profile.statistics} - - {#if schedule && preferences && preferences.biography && preferences.biography.length > 0} -
- {:else} -

- {/if} - - {#if $Profile.fetching} - {displayBadges(userData.name, '...')} - {:else if $Profile.data && $Profile.data.User} - {@const badges = $Profile.data.User.badgesCount} - - {#if badges} - {displayBadges(userData.name, badges)} - {:else} - {displayBadges(userData.name, '?')} - {/if} - {:else} - {displayBadges(userData.name, '?')} - {/if} -

-
-
-
- {/if} - - {#if schedule && preferences && preferences.pinned_hololive_streams.length > 0} -

- -

-
- {#each preferences.pinned_hololive_streams as stream, index} - {@const avatar = schedule.dict[stream]} - - {#if avatar} - - -
- -
-
-
- {/if} - {/each} -
-
- {/if} - - {#if preferences && userData && userData.id === $identity.id} -

- -

- {$locale().user.preferences.title} - - { - if (userData) toggleHideMissingBadgesQuery.mutate(null).then(); - }} - checked={preferences.hide_missing_badges} - /> - {$locale().user.preferences.hideMissingBadges.title} - {$locale().user.preferences.hideMissingBadges.hint} - -

- - { - if (userData) toggleHideAWCBadgesQuery.mutate(null).then(); - }} - checked={preferences.hide_awc_badges} - /> - {$locale().user.preferences.hideAWCBadges.title} - -

- - Pinned Categories - -

- {#each preferences.pinned_badge_wall_categories as category} -
handleDragStart(event, category)} - on:dragover={handleDragOver} - on:dragenter={(event) => handleDragEnter(event, category)} - on:dragleave={(event) => handleDragLeave(event, category)} - on:drop={handleDrop} - role="button" - tabindex="0" - > - - {category} - - - -
- {/each} - - - - - - - - -
- -

- - Biography - - -